/**
 * 【所有自定义的指令】
 * Created by mosaic101 on 2016/8/6.
 */
define(function (require, exports, module) {
  'use strict';
  module.exports = function (app) {
    app.directive("topTitle", function () {
      //顶部导航栏
      return {
        restrict: 'E',
        replace: true,
        scope: {
          title: '@',
          icon: '@',
          isBmap: '@'
        },
        templateUrl: 'template_views/top-title.html',
        controller: function ($scope) {
          $scope.showPersonal = function () {
            angular.element('#title-dropdown').dropdown('toggle');
          }
        }
      }
    });
  };
});
